/*
  数据模型
  规则定义
*/

const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');//分页
var schema = new mongoose.Schema({ //概要。用户的信息
    name: String,
    password: String,
    gender: String,//性别
    email: String
   
    
});
schema.plugin(mongoosePaginate);//使用mongoose-paginate
module.exports =  mongoose.model('User',  schema, 'user');//接口暴露